<?php
//Svetlana Gornostajeva, Student 13, reedeti 17.15-21.15, 09.10.2011
$actors= array('Al Pacino', 'Arnold Schwarzenegger', 'Ben Affleck', 'Bill Cosby', 'Brad Pitt', 'Bruce Willis', 'Hugh Grant', 'Jackie Chan', 'Matt Damon', 'Mel Gibson'); 

echo "<pre>";
print_r($actors);

echo "<p>";
for ($i=sizeof($actors)-1; $i>=0; $i--)
{
  echo $$actors[$i];
  if ($i != 0)
  {
    echo " ";
  }
} 

?>